package com.base.mapper.voipmapper;

import java.util.Date;
import java.util.List;

import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;
import com.base.po.voip.Dials;

public interface DialsMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Dials record);

	int insertSelective(Dials record);

	List<Dials> selectAll(@Param("page") Page page, @Param("parentid") String parentid, @Param("username") String username,
						  @Param("mobile") String mobile, @Param("isinsurance") Byte isinsurance);

	Dials selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Dials record);

	int updateByPrimaryKey(Dials record);

	int countByDay(@Param("pid") String pid, @Param("sid") String sid, @Param("stime") Date stime,
                   @Param("etime") Date etime);

	int countAll(@Param("parentid") String parentid, @Param("username") String username, @Param("mobile") String mobile,
				 @Param("isinsurance") Byte isinsurance);
}